package com.zx.disneyholidays.utils;

import android.util.Log;
import android.util.LogPrinter;

public class MyLogPrinter extends LogPrinter {
    /**
     * Create a new Printer that sends to the log with the given priority
     * and tag.
     *
     * @param priority The desired log priority:
     *                 {@link Log#VERBOSE Log.VERBOSE},
     *                 {@link Log#DEBUG Log.DEBUG},
     *                 {@link Log#INFO Log.INFO},
     *                 {@link Log#WARN Log.WARN}, or
     *                 {@link Log#ERROR Log.ERROR}.
     * @param tag      A string tag to associate with each printed log statement.
     */
    public MyLogPrinter(int priority, String tag) {
        super(priority, tag);
    }

    @Override
    public void println(String x) {
        super.println(x);
        Log.d("xxx",x);
    }
}
